<% status = params[:status] if params[:status].present?%>
<%= hidden_field_tag :page, params[:page] %>
<% if status == 'deleted'%>
    <li> <%= submit_tag t("views.common.recover"), :name => "recover_deleted", :class => "top_links recover_deleted"%> </li>
    <% elsif status == 'archived'%>
    <li><%= submit_tag t("views.common.recover"), :name => "recover_archived", :class => "top_links recover_archived" %></li>
    <li><%= submit_tag t('views.common.delete'), :name => "destroy_archived", :class => "top_links destroy_archived" %></li>
    <% else %>
    <li><%= submit_tag t("views.common.recover"), :name => "recover_archived", :class => "top_links recover_archived", :style => "display:none;" %></li>
    <li><%= submit_tag t("views.common.recover"), :name => "recover_deleted", :class => "top_links recover_deleted", :style => "display:none;" %></li>
    <li><%= submit_tag t("views.common.archive"), :name => "archive", :class => "top_links archive" %></li>
    <li class="grid_control_sep">
      <%= submit_tag "Delete", :name => "destroy", :class => "top_links destroy" %>
    </li>
    <li><%= submit_tag t('views.common.delete'), :name => "destroy_archived", :class => "top_links destroy_archived", :style => "display:none;" %></li>
    <li>
      <!--<%#= link_to "New Invoice" ,new_invoice_path %>-->
      <%= submit_tag "New Invoice", :name => "new_invoice", :class => "top_links new_invoice" %></li>
    <!--<li><a href="#" class="no_links">Copy</a></li>-->
    <!--<li><a href="#" class="no_links">Print</a></li>-->
<% end %>
